import request from '../request.ts'
//获取在线用户
export const getOnlineList = async  (search:Object) => {
    let r:any = await request({
        url: '/system/onlineUser',
        method: 'get',
        loading: true,
        data:search
    })
    return {
        data:r.data,
        total:r.data.length
    }
}
//强退
export const logoutUser = async  (user) => {
    let r:any = await request({
        url: '/system/user/logout',
        method: 'get',
        loading: true,
        data:{
            userId:user.userId,
            userName:user.username
        }
    })
    return r
}